package com.taotao.st3.sharding5.model.po;

import com.alibaba.fastjson2.JSON;
import com.gitee.fastmybatis.annotation.Column;
import com.gitee.fastmybatis.annotation.Pk;
import com.gitee.fastmybatis.annotation.PkStrategy;
import com.gitee.fastmybatis.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;



/**
* 字典表
* @author Fan Beibei
* @date   2023-04-12 17:08:19
*/
@Data
@Table(name = "dict",pk = @Pk(name = "id", strategy = PkStrategy.NONE))
public class Dict {

	/**
	* 主键
	*/
	@Schema(description="主键")
	private Long id;
	/**
	* 字典组
	*/
	@Schema(description="字典组")
	private String dictGroup;
	/**
	* 字典组描述
	*/
	@Schema(description="字典组描述")
	private String dictDescr;
	/**
	* 字典项
	*/
	@Schema(description="字典项")
	private String dictItemKey;
	/**
	* 字典项描述
	*/
	@Schema(description="字典项描述")
	private String dictItemValue;
	/**
	* 是否删除:1-是，0-否
	*/
	@Schema(description="是否删除:1-是，0-否")
	@Column(logicDelete = true,deleteValue = "1",notDeleteValue = "0")
	private Integer deleted;
	/**
	* 创建人ID
	*/
	@Schema(description="创建人ID")
	private Long createId;
	/**
	* 创建时间
	*/
	@Schema(description="创建时间")
	private Date createTime;
	/**
	* 更新人ID
	*/
	@Schema(description="更新人ID")
	private Long updateId;
	/**
	* 更新时间
	*/
	@Schema(description="更新时间")
	private Date updateTime;

	@Override
	public String toString() {
	return JSON.toJSONString(this);
	}

}